home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Developers / ACL / Animation Class Library / Headers / AnimPict.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-01  |  1.4 KB  |  75 lines  |  [TEXT/MPCC]

  1.  
  2. /********************************************
  3.  **** Animation Class Library V1.0 © 1994 Yves Schmid & Alia Development
  4.  ****
  5.  **** AnimPict.h
  6.  ****
  7.  **** Created:      14 May 1994
  8.  **** Modified:     01 September 1994
  9.  **** Version:      0
  10.  **** Compatible:   C++, Mac System 7
  11.  ****
  12.  **** Description:  • You should not have to use directly this class. This class
  13.  ****                is used by AnimBase to keep trace of the allocated AnimGfxs.
  14.  ****
  15.  ****                • AnimPict is a child class of the CoreHead class.
  16.  ****
  17.  *******************/
  18.  
  19.  
  20. #ifndef AnimPict_H
  21. #define AnimPict_H
  22.  
  23.  
  24. #include "CoreHead.h"
  25. #include "AnimGfx.h"
  26.  
  27. class AnimBase;
  28.  
  29. //................................
  30.  
  31. class AnimPict: public CoreHead
  32. {
  33.     long        pictRESID;
  34.     AnimGfx        *gfx;
  35.     AnimGfx        *gfxdouble;
  36.     Boolean        maybeflushed;
  37.     
  38.     protected:
  39.  
  40.     virtual void receivecmd(long cmd, void *info);
  41.  
  42.     public:
  43.  
  44.     AnimPict(AnimBase *, long resid);
  45.     ~AnimPict();
  46.     
  47.     inline long         getRESID(void) const {return pictRESID;}
  48.     inline AnimGfx        *getgfx(void) const {return gfx;}
  49.  
  50.     inline Boolean &getmaybeflushed(void) {return maybeflushed;} // If TRUE this picture may be
  51.                                                                  // flushed by "deleteunusedgfx".
  52.                                                                  // Default is FALSE.
  53.  
  54.     AnimGfx *isdouble(void);
  55. };
  56.  
  57. //................................
  58.  
  59. class AnimGfxLink: public AnimGfx
  60. {
  61.     short a;
  62.  
  63.     protected:
  64.  
  65.     virtual void receivecmd(long cmd, void *info);
  66.  
  67.     public:
  68.  
  69.     AnimGfxLink();
  70.     ~AnimGfxLink();
  71. };
  72.  
  73. #endif
  74.  
  75.